package cn.good.yan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * SpringBoot项目 - 主启动类  - 服务端2
 * 1. Eureka 演示 provider 的服务端 - 服务2
 *
 * @author shengren.yan
 * @create 2023-09-27
 */
@EnableEurekaClient
@EnableDiscoveryClient //服务发现
//@MapperScan("com..**.mapper")
@MapperScan("cn.good.yan.mapper")
@SpringBootApplication
public class BootApplication {

     public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
     }

}